package common.config;

import common.platformclient.PlatformClientFallBack;
import common.platformclient.PlatformClientService;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
@EnableFeignClients(basePackages = "common")
public class CommonConfig {

    @Bean
    public PlatformClientService platformClientService() {
        return new PlatformClientService();
    }

    @Bean
    public PlatformClientFallBack platformClientFallBack() {
        return new PlatformClientFallBack();
    }

}
